package com.sigmatrix.h5.auth;

import java.util.HashMap;
import java.util.Map;


/**
 * 资源和权限关系表
 * 
 * @author wei.wang
 *
 */
public class ResoursePermissionMap {
	/**
	 * 静态配置
	 */
	private static final Map<String,String[]> map = new HashMap<>();
	static{
		map.put("/app/**", "007".split(","));//分销。
		map.put("/rebate/hierarachy/api/rebate/submit", "003".split(","));//层级扫码
		map.put("/open/rebate/regist/api/audit", "006".split(","));//审核终端店
		map.put("/rebate/detail/api/handleCash", "002".split(","));//提现。
		map.put("/ins/code/analysis", "004".split(","));//分析是否窜货
		map.put("/ins/code/query", "004".split(","));//查询稽查记录
		map.put("/ins/ins/save", "004".split(","));//保存稽查记录
		map.put("/dealer/reg/audit", "006".split(","));//审核经销商
		map.put("/front/rebate/v2/**", "002".split(","));//提现。
		map.put("/front/inspect/**", "004".split(","));//稽查
		map.put("/front/flee/**", "004".split(","));//稽查
		map.put("/front/verification/**", "001".split(","));//核销
//		map.put("/front/xxx/**", "001".split(","));//核销
		
	}
	
	public static Map<String,String[]> getResPermissionMap(){
		return ResoursePermissionMap.map;
	}

}
